/*
 * @Descripttion: 
 * @Author: yuxi
 * @Date: 2023-08-28 17:01:23
 * @LastEditors: yuxi
 * @LastEditTime: 2023-08-28 19:10:00
 */
import Base from 'mining-map/Actions/Base'
import Event from 'ol/events/Event'

export default class SplitAction extends Base { 

  constructor() {
    super()
    this.autoStart = false
  }
  contextmenu (evt) {
    evt.originalEvent.cancelBubble = true
    evt.originalEvent.preventDefault()
    this.dispatchEvent(evt)
    return true
  }
  pointermove(evt) { 
    if(this.active) { 
      this.dispatchEvent(evt) 
    }
    return true // 组织其他Action使用
  }

}
